package com.kly.order.db.dao;

import com.fqgj.common.base.BaseMapper;
import com.kly.order.db.entity.ProductBenefitsEntity;

import java.util.List;
import java.util.Map;

/**
 * User: 11437
 * Date: 2023-06-14
 * Time: 16:47:43.083
 */

public interface ProductBenefitsDao extends BaseMapper<ProductBenefitsEntity> {

    List<ProductBenefitsEntity> selectByProductCategory(Map<String, Object> params);
    /**
     * 获取产品权益配置
     */
    List<ProductBenefitsEntity> listProductBenefit(String appCode, Integer productCategory);
    /**
     * 获取产品权益配置
     */
    ProductBenefitsEntity getProductBenefit(String appCode, Integer productCategory, Integer benefitCode);
    /**
     * 获取产品权益配置
     */
    List<ProductBenefitsEntity> listProductBenefitByBenefitCode(String appCode, Integer benefitCode);

    Integer removeProductBenefit(String appCode, Integer benefitCode);

    Integer updateByBenefitCode(String appCode, Integer benefitCode, String tip, String content, String icon, Integer showFlag);
}